package Tests;

import static org.junit.Assert.*;

import org.junit.Test;

import algorithm.Entropy;

public class EntropyTest {
	@Test
	public void testRightValue1(){
		assertEquals(0.940, Entropy.calc(9, 5),0.001);
		
		
	}
	
	@Test
	public void testRightValue2(){
		assertEquals(0.971, Entropy.calc(2, 3),0.001);
		
		
	}
	
	@Test
	public void testRightValue3(){
		assertEquals(0.971, Entropy.calc(3, 2),0.001);
		
		
	}
}
